import java.io.File

fun main() {
    var fileContents:List<String>
    File("E://i have a dream.txt").also {
        println(it.name)
    }.also {
        fileContents = it.readLines()
    }
    println(fileContents)
}